package com.zzf.工厂模式;

public class Test {
    public static void main(String[] args) {
        Fruit fruit1 = FruitFactory.createFruit(FruitFactory.CREATE_APPLE);
        Fruit fruit2 = FruitFactory.createFruit(FruitFactory.CREATE_ORANGE);
        Fruit fruit3 = FruitFactory.createFruit(FruitFactory.CREATE_PEACH);
        Fruit fruit4 = FruitFactory.createFruit(FruitFactory.CREATE_WATERMELON);

        fruit1.show();
        fruit2.show();
        fruit3.show();
        fruit4.show();
    }
}
